<template>
    <input type="text" v-model="model">
    <div class="text-center">{{ model }}</div>
</template>

<script setup lang="ts">
const model = defineModel<string>({
    required: true
})


// 拦截写操作
// const model = defineModel<string>({
//     set: v => v.trim()
// })




</script>
